
 /*
 * monster_list.h
 *
 *  Created on: 28 Mars. 2013
 *      Author: Sandrine Soub and Benjamin Rambaud
 */

#ifndef MONSTER_LIST_H_
#define MONSTER_LIST_H_

#include <stdlib.h>
#include <stdio.h>
#include "SDL.h"
#include "SDL_image.h"



typedef struct s_list * t_list;

typedef struct s_cell * t_cell;

//Initialise the list

t_list  monster_list_init (t_monster monster);

//display the list
void monster_list_display(t_list list);

// Add a new element at begining of l, returns the new list

t_list monster_list_add(t_list list, t_monster monster);

//Get a head of the list
t_cell monster_list_get_head(t_list list);

//Get a size of the list
int monster_list_get_size(t_list list);


//Get a next cell of the list
t_cell monster_list_get_next_cell(t_cell cell);

//Get a previous cell of the list
t_cell monster_list_get_previous_cell(t_cell cell);

//Delete the list
t_list  monster_list_delete(t_list list, t_monster monster);



#endif /* MONSTER_LIST_H_ */
